package com.zhiyou100.mapper;

import com.zhiyou100.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    List<User> listUser(Map map);

    int addUser(User User);

    int updateUser(User User);

    User lookUser(int id);

    int deleteAll(List<Integer> UserIds);

    int delete(int id);

    String findPasswordByTel(String phoneNum);

    int updatePasswordByTel(@Param("newPassword") String newPassword,@Param("phoneNum") String phoneNum);
}
